"""Mysite URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""

from django.urls import path, include
from web.views import account, homepage, search

urlpatterns = [
    path('', account.loginplus),
    path('register/', account.register, name='register'),
    path('send/sms/', account.send_sms, name='send_sms'),
    path('image/', account.imagecode, name='imagecode'),
    path('userexpired/', account.userexpired),

    path('loginplus/', account.loginplus),
    path('logout/', account.logout),
    path('registerplus/', account.registerplus),
    path('resetplus/', account.resetplus),
    path('reset/', account.reset),
    path('wait/', account.wait),
    path('resetright/', account.resetright),


    path('index/', homepage.index, name='index'),
    path('showimg/', homepage.showimg),
    path('usercenter/', homepage.usercenter),
    path('data/list/', homepage.datalist),
    path('data/batchdel/', homepage.databatchdel),
    path('data/del/', homepage.datadel),
    path('dev/del/', homepage.devdel),

    path('device/own/', homepage.deviceown),
    path('device/man/', homepage.devman),

    path('device/temp/', homepage.devicetemp),
    path('device/model/', homepage.devicemodel),

    path('device/detail/', homepage.devdetail),
    path('device/sub/', homepage.devsub),

    path('temp/pub/', homepage.temppub),
    path('man/pub/', homepage.manpub),

    path('device/add/', homepage.devadd),
    path('modelshow/', homepage.modelshow),
    path('videoshow/', homepage.videoshow),
    path('temp/add/', homepage.tempadd),
    path('editsearch/', homepage.editsearch),
    path('temp/edit/', homepage.tempedit),
    path('temp/del/', homepage.tempdel),
    path('temp/load/', homepage.temload),

    path('oneline/', homepage.oneline),
    path('flushdata/', homepage.flushdata),

    path('relshow/', homepage.relshow),
    path('reladd/', homepage.reladd),
    path('reldel/', homepage.reldel),

    path('help/', homepage.help),

    path('charts/', homepage.charts),

    path('schedule/', homepage.scheduleshow),
    path('schedule/del/', homepage.scheduledel),
    path('schedule/detail/', homepage.scheduledetail),
    # 计划任务
    path('schedule/pub1/', homepage.pubplan1),
    path('schedule/pub2/', homepage.pubplan2),
    path('schedule/pub3/', homepage.pubplan3),
    path('schedule/pub4/', homepage.pubplan4),
    path('schedule/pub5/', homepage.pubplan5),
    # 触发任务
    path('trigger/', homepage.triggershow),
    path('triggersave/', homepage.triggersave),
    path('triggerdel/', homepage.triggerdel),
    path('triggercheck/', homepage.triggercheck),
    path('triggercheck/del/', homepage.triggercheckdel),



    path('video/', homepage.video),
    path('send/video/', homepage.sendvideo),
    path('search/', search.test),
]
